using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._UtilityNetworkTools
{
    /// <summary>
    /// <para>Alter Diagram Template</para>
    /// <para>Alter the properties of the Diagram Template</para>
    /// <para>更改逻辑示意图模板的属性</para>
    /// </summary>    
    [DisplayName("Alter Diagram Template")]
    public class AlterDiagramTemplate : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public AlterDiagramTemplate()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_utility_network">
        /// <para>Input Network</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        /// <param name="_template_name">
        /// <para>Input Diagram Template</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        public AlterDiagramTemplate(object _in_utility_network, object _template_name)
        {
            this._in_utility_network = _in_utility_network;
            this._template_name = _template_name;
        }
        public override string ToolboxName => "Utility Network Tools";

        public override string ToolName => "Alter Diagram Template";

        public override string CallName => "un.AlterDiagramTemplate";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_utility_network, _template_name, _out_name, _is_default_template.GetGPValue(), _are_rules_and_layouts_removed.GetGPValue(), _are_vertices_kept.GetGPValue(), _container_margin, _out_utility_network, _out_template_name, _is_diagram_storage_enabled.GetGPValue(), _is_diagram_extension_enabled.GetGPValue(), _description, _are_layer_definitions_removed.GetGPValue()];

        /// <summary>
        /// <para>Input Network</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Network")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_utility_network { get; set; }


        /// <summary>
        /// <para>Input Diagram Template</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Diagram Template")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _template_name { get; set; }


        /// <summary>
        /// <para>Diagram Template Name</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Diagram Template Name")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _out_name { get; set; } = null;


        /// <summary>
        /// <para>Default template</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Default template")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _is_default_template_value _is_default_template { get; set; } = _is_default_template_value._false;

        public enum _is_default_template_value
        {
            /// <summary>
            /// <para>DEFAULT_TEMPLATE</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("DEFAULT_TEMPLATE")]
            [GPEnumValue("true")]
            _true,

            /// <summary>
            /// <para>NOT_DEFAULT_TEMPLATE</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("NOT_DEFAULT_TEMPLATE")]
            [GPEnumValue("false")]
            _false,

        }

        /// <summary>
        /// <para>Remove the diagram template rule and layout definitions</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Remove the diagram template rule and layout definitions")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _are_rules_and_layouts_removed_value _are_rules_and_layouts_removed { get; set; } = _are_rules_and_layouts_removed_value._false;

        public enum _are_rules_and_layouts_removed_value
        {
            /// <summary>
            /// <para>REMOVE_RULES_AND_LAYOUTS</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("REMOVE_RULES_AND_LAYOUTS")]
            [GPEnumValue("true")]
            _true,

            /// <summary>
            /// <para>DO_NOT_REMOVE_RULES_AND_LAYOUTS</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("DO_NOT_REMOVE_RULES_AND_LAYOUTS")]
            [GPEnumValue("false")]
            _false,

        }

        /// <summary>
        /// <para>Keep initial vertices on edges</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Keep initial vertices on edges")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _are_vertices_kept_value _are_vertices_kept { get; set; } = _are_vertices_kept_value._false;

        public enum _are_vertices_kept_value
        {
            /// <summary>
            /// <para>KEEP_VERTICES</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("KEEP_VERTICES")]
            [GPEnumValue("true")]
            _true,

            /// <summary>
            /// <para>DO_NOT_KEEP_VERTICES</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("DO_NOT_KEEP_VERTICES")]
            [GPEnumValue("false")]
            _false,

        }

        /// <summary>
        /// <para>Container Margin</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Container Margin")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public string _container_margin { get; set; } = "0 Unknown";


        /// <summary>
        /// <para>Output Network</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Network")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_utility_network { get; set; }


        /// <summary>
        /// <para>Output Diagram Template</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Diagram Template")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_template_name { get; set; }


        /// <summary>
        /// <para>Enable to store diagrams</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Enable to store diagrams")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _is_diagram_storage_enabled_value _is_diagram_storage_enabled { get; set; } = _is_diagram_storage_enabled_value._true;

        public enum _is_diagram_storage_enabled_value
        {
            /// <summary>
            /// <para>ENABLE_DIAGRAM_STORAGE</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("ENABLE_DIAGRAM_STORAGE")]
            [GPEnumValue("true")]
            _true,

            /// <summary>
            /// <para>DISABLE_DIAGRAM_STORAGE</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("DISABLE_DIAGRAM_STORAGE")]
            [GPEnumValue("false")]
            _false,

        }

        /// <summary>
        /// <para>Enable to extend diagrams</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Enable to extend diagrams")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _is_diagram_extension_enabled_value _is_diagram_extension_enabled { get; set; } = _is_diagram_extension_enabled_value._false;

        public enum _is_diagram_extension_enabled_value
        {
            /// <summary>
            /// <para>ENABLE_DIAGRAM_EXTENSION</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("ENABLE_DIAGRAM_EXTENSION")]
            [GPEnumValue("true")]
            _true,

            /// <summary>
            /// <para>DISABLE_DIAGRAM_EXTENSION</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("DISABLE_DIAGRAM_EXTENSION")]
            [GPEnumValue("false")]
            _false,

        }

        /// <summary>
        /// <para>Description</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Description")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _description { get; set; } = null;


        /// <summary>
        /// <para>Reset the diagram template layer definition to default</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Reset the diagram template layer definition to default")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _are_layer_definitions_removed_value _are_layer_definitions_removed { get; set; } = _are_layer_definitions_removed_value._false;

        public enum _are_layer_definitions_removed_value
        {
            /// <summary>
            /// <para>REMOVE_LAYER_DEFINITIONS</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("REMOVE_LAYER_DEFINITIONS")]
            [GPEnumValue("true")]
            _true,

            /// <summary>
            /// <para>DO_NOT_REMOVE_LAYER_DEFINITIONS</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("DO_NOT_REMOVE_LAYER_DEFINITIONS")]
            [GPEnumValue("false")]
            _false,

        }

        public AlterDiagramTemplate SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}